@import "./reset.css";
@import "./base.scss";
@import "./mixin.scss";

// 间接设置全局动态属性可以防止它们在局部被覆
:root {
	--THEME: var(--USER-THEME-COLOR, #e5473c);
	--THEME-COLOR: var(--USER-THEME-COLOR, #e5473c);
}

#root {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.sun-block {
    display: block !important;
}

.sun-none {
    display: none !important;
}

//flex
.sun-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sun-content {
    min-height: 0;
    flex: 1;
    overflow: hidden;
    background-color: $theme-main-color;
}

.sun-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    overflow: hidden;
    & .sun-blur-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vw;
        filter: blur(2.77778vw);
        transform: scale(1.5);
        @include bg-full($p:50%, $s:cover);
        &:after {
            content:" ";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            background-color: rgba(0,0,0,.25);
        }
    }
}

img {
    max-width: 100%;
}

.translate-enter {
    transform:translate3d(100%, 0, 0);
    &.translate-enter-active {
        transition: transform 0.3s;
        transform: translate3d(0,0,0);
    }
}
